import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
import { NgModel } from '@angular/forms';
import { TransferItem } from './demos/components/transfer/types';
import { Router } from '@angular/router';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppComponent {

  constructor(private router: Router) {}
  toCrisisCenter() {
    // this.router.navigateByUrl('/crisis-center');
    this.router.navigate(['./crisis-center']);
  }
  toHeroes() {
    // this.router.navigateByUrl('/heroes');
    this.router.navigate(['./heroes']);
  }
}
